package MTT::Schema::Result::ReportParam;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components("InflateColumn::DateTime", "EncodedColumn");

=head1 NAME

MTT::Schema::Result::ReportParam

=cut

__PACKAGE__->table("report_params");

=head1 ACCESSORS

=head2 id_report

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

=head2 id_param

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

=head2 number

  data_type: 'tinyint'
  is_nullable: 1

=cut

__PACKAGE__->add_columns(
  "id_report",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
  "id_param",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
  "number",
  { data_type => "tinyint", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id_report", "id_param");

=head1 RELATIONS

=head2 id_report

Type: belongs_to

Related object: L<MTT::Schema::Result::Report>

=cut

__PACKAGE__->belongs_to(
  "id_report",
  "MTT::Schema::Result::Report",
  { id => "id_report" },
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);

=head2 id_param

Type: belongs_to

Related object: L<MTT::Schema::Result::Param>

=cut

__PACKAGE__->belongs_to(
  "id_param",
  "MTT::Schema::Result::Param",
  { id => "id_param" },
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2011-04-23 14:00:32
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3T8h1ZnRDkO7xUIpoq5/cA


# You can replace this text with custom content, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
